package cn.bdqn.service.impl;


import cn.bdqn.dao.RoleDao;
import cn.bdqn.entity.Role;
import cn.bdqn.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Resource
    RoleDao roleDao;

    @Override
    public List<Role> findAllRoles() {
        return roleDao.findAll();
    }

}
